local cjson         = require('cjson.safe')
local DB            = require("libs.db")

local db = DB:new()


local getAllSkill = function()
    local res, err =  db:query("SELECT sleep(2)")
    if res == nil then
        res = {}
    end
    return res
end




local allSkillData = getAllSkill()
ngx.sleep(1)

-- ngx.say(cjson.encode(allSkillData))
ngx.say(cjson.encode("Skill"))